package Test.IO;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class CopyTextTest {
    public static void main(String[] args) throws IOException {
        FileReader in = new FileReader("/Users/jinnian/Desktop/emp.txt");
        FileWriter out = new FileWriter("/Users/jinnian/Desktop/empcoupy.txt");
        int ch = 0;
        while ((ch = in.read()) != -1) {
            out.write(ch);
        }
        in.close();
        out.close();
    }
}
